<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/vfs/fish/helpers/info</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--fish.html'>fish</a>/<a href='../files/src--vfs--fish--helpers.html'>helpers</a>/info</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--fish.html'>fish</a>/<a href='../files/src--vfs--fish--helpers.html'>helpers</a>/info</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 src/vfs/fish/helpers/info'  /> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>LC_TIME=C
<a id='L2' name='L2'></a>export LC_TIME
<a id='L3' name='L3'></a>#FISH_HAVE_HEAD         1
<a id='L4' name='L4'></a>#FISH_HAVE_SED          2
<a id='L5' name='L5'></a>#FISH_HAVE_AWK          4
<a id='L6' name='L6'></a>#FISH_HAVE_PERL         8
<a id='L7' name='L7'></a>#FISH_HAVE_LSQ         16
<a id='L8' name='L8'></a>#FISH_HAVE_DATE_MDYT   32
<a id='L9' name='L9'></a>#FISH_HAVE_TAIL        64
<a id='L10' name='L10'></a>res=0
<a id='L11' name='L11'></a>if `echo yes| head -c 1 &gt; /dev/null 2&gt;&amp;1` ; then
<a id='L12' name='L12'></a>    res=`expr $res + 1`
<a id='L13' name='L13'></a>fi
<a id='L14' name='L14'></a>if `echo 1 | sed 's/1/2/' &gt;/dev/null 2&gt;&amp;1` ; then
<a id='L15' name='L15'></a>    res=`expr $res + 2`
<a id='L16' name='L16'></a>fi
<a id='L17' name='L17'></a>if `echo 1| awk '{print}' &gt; /dev/null 2&gt;&amp;1` ; then
<a id='L18' name='L18'></a>    res=`expr $res + 4`
<a id='L19' name='L19'></a>fi
<a id='L20' name='L20'></a>if `perl -v &gt; /dev/null 2&gt;&amp;1` ; then
<a id='L21' name='L21'></a>    res=`expr $res + 8`
<a id='L22' name='L22'></a>fi
<a id='L23' name='L23'></a>if `ls -Q / &gt;/dev/null 2&gt;&amp;1` ; then
<a id='L24' name='L24'></a>    res=`expr $res + 16`
<a id='L25' name='L25'></a>fi
<a id='L26' name='L26'></a>dat=`ls -lan / 2&gt;/dev/null | head -n 3 | (
<a id='L27' name='L27'></a>    while read p l u g s rec; do
<a id='L28' name='L28'></a>      if [ -n "$g" ]; then
<a id='L29' name='L29'></a>        if [ -n "$l" ]; then
<a id='L30' name='L30'></a>          echo "$rec"
<a id='L31' name='L31'></a>        fi
<a id='L32' name='L32'></a>      fi
<a id='L33' name='L33'></a>    done
<a id='L34' name='L34'></a>)`
<a id='L35' name='L35'></a>dat=`echo $dat | cut -c1 2&gt;/dev/null`
<a id='L36' name='L36'></a>r=`echo "0123456789"| grep "$dat"`
<a id='L37' name='L37'></a>if [ -z "$r" ]; then
<a id='L38' name='L38'></a>    res=`expr $res + 32`
<a id='L39' name='L39'></a>fi
<a id='L40' name='L40'></a>if `echo yes| tail -c +1 - &gt; /dev/null 2&gt;&amp;1` ; then
<a id='L41' name='L41'></a>    res=`expr $res + 64`
<a id='L42' name='L42'></a>fi
<a id='L43' name='L43'></a>echo $res
<a id='L44' name='L44'></a>echo "### 200"
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+44 src/vfs/fish/helpers/info'  /> */</em>
</body>
</html>
